package cn.forkway.domain;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @program: java-learn-spring
 * @className: School.java
 * @author: River Ray
 * @description:
 * @createTime 2021年10月13日 20:56:00
 */
@Data
@Component("school01")
public class School {
    @Value("${schoolName}")
    private  String  name;
    @Value("${schoolId}")
    private  Integer id;

}
